const http = require('http')
const server = http.createServer()

server.listen(3030,()=>{
  console.log('服务器启动成功');
})

server.on('request',(req,res)=>{
  console.log('嘻嘻嘻');
  res.end('来了，老弟！')
})